home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / dev / gg / gengetopt-2.6.lha / gengetopt-2.6 / doc / testdata < prev    next >
Text File  |  2002-03-02  |  2KB  |  49 lines

  1. This one is from a C++ program
  2. Try to launch me with some options
  3. (type sample1 --help for the complete list)
  4. For example: ./sample1 *.* --funct-opt
  5. Here are the options you passed...
  6. file: cmdline1.c
  7. file: cmdline2.c
  8. This is the integer you input: 10.
  9. The flag option was given!
  10. The flag is on.
  11. Hello! Have a nice day! :-)
  12. This one is from a C++ program
  13. Try to launch me with some options
  14. (type sample1 --help for the complete list)
  15. For example: ./sample1 *.* --funct-opt
  16. sample1 2.0
  17.  
  18. Usage: sample1 -iINT|--int-opt=INT [-h|--help] [-V|--version] -sSTRING|--str-opt=STRING -mINT|--my-opt=INT [--flag-opt] [-F|--funct-opt] --long-opt=LONG --def-opt=STRING  [FILES]...
  19.    -h         --help            Print help and exit
  20.    -V         --version         Print version and exit
  21.    -sSTRING   --str-opt=STRING  A string option
  22.    -mINT      --my-opt=INT      Another integer option
  23.    -iINT      --int-opt=INT     A int option
  24.               --flag-opt        A flag option (default=off)
  25.    -F         --funct-opt       A function option
  26.               --long-opt=LONG   A long option
  27.               --def-opt=STRING  A string option with default (default='Hello')
  28. Here is the version
  29. sample2 2.0
  30. This is a simple test for gengetopt
  31. sample2 2.0
  32.  
  33. Purpose:
  34.   this is just a test program for gengetopt
  35.  
  36. Usage: sample2 [OPTIONS]... [FILES]...
  37.    -h             --help                        Print help and exit
  38.    -V             --version                     Print version and exit
  39.    -sSTRING       --str-opt=STRING              A string option
  40.    -iINT          --int-opt=INT                 A int option
  41.    -SSHORT        --short-opt=SHORT             A short option
  42.    -lLONG         --long-opt=LONG               A long option
  43.    -fFLOAT        --float-opt=FLOAT             A float option
  44.    -dDOUBLE       --double-opt=DOUBLE           A double option
  45.    -LLONGDOUBLE   --long-double-opt=LONGDOUBLE  A long double option
  46.    -yLONGLONG     --long-long-opt=LONGLONG      A long long option
  47.    -F             --func-opt                    A function option
  48.    -x             --flag-opt                    A flag option (default=off)
  49.